package java69.work721;
//培根披萨
public class Baconpizza  extends Pizza {
    private int weight;

    public Baconpizza() {
    }

    public Baconpizza(int size, String name, double price, int weight) {
        super(size, name, price);
        this.weight = weight;
    }

    @Override
    public void pizza() {
        System.out.println("名称："+this.getName()+"\n价格："+this.getPrice()+"\n大小："+this.getSize()+"\n培根克数："+this.weight);
    }
}
